package cate.common.table.guild.guildboss;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import cate.common.util.random.RWItem;

public class GuildBossRewardRow extends ERow implements RWItem {
    public int group;
    public double weight;
    public String rewardStr;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID");
        this.group = xrw.getInteger("分组");
        this.rewardStr = xrw.getString("掉落物品");
        this.weight = xrw.getDouble("权重");
    }

    @Override
    public double getWeight() {
        return weight;
    }
}
